Skip to content

[python] Make DataSketches optional for regular reads - #8902

Merged
JingsongLi merged 1 commit into
apache:masterfrom
XiaoHongbo-Hope:fix/pypaimon-datasketches-lazy-import
Jul 30, 2026
Merged

[python] Make DataSketches optional for regular reads#8902
JingsongLi merged 1 commit into
apache:masterfrom
XiaoHongbo-Hope:fix/pypaimon-datasketches-lazy-import

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Purpose

PyPaimon eagerly imported _datasketches while registering aggregators, so environments without DataSketches could not perform unrelated reads.

This change moves DataSketches to the optional theta-sketch extra and imports it only when theta_sketch aggregation is used.

Tests

  • Aggregator and optional-dependency tests: 124 passed
  • Flake8 passed

@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit bca8fd9 into apache:master Jul 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants